<%--
    Document   : Venta
    Created on : 26/05/2012, 09:33:51 PM
    Author     : JULIAN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
   HttpSession session_1 = request.getSession(true);
   String almacen = (String) session_1.getAttribute("alma");//Recoge la session
   String caja = (String) session_1.getAttribute("caja");//Recoge la session
%>
<html>
<center><font color="white">VENTAS</center>
<title>Ventas</title>
<script type="text/javascript">
        function soloNumeros(e){
        var key = window.Event ? e.which : e.keyCode
        return ((key >= 48 && key <= 57) || (key==8))
                               }
    </script>
<form method="post" action="validaventa">
    <Body Bgcolor="#000000">
     <table style="position:absolute;top:25px;left:350px;"
<TABLE>
<TR>
	<TD><font color="white">Codigo Vendedor</TD></font>
	<TD>
	<INPUT type=text name="id_empleado" onKeyPress="return soloNumeros(event)"/>
	</TD>
</TR>

<TR>
        <TD><font color="white">Tipo de Pago</TD></font>
	<TD>
	<INPUT type=text name="id_tipo_pago">
	</TD>
</TR>

<TR>
	<TD><font color="white">Codigo de Caja</TD></font>
	<TD>
	<INPUT type=text name="id_caja" readonly="readonly" value="<%=caja%>"/>
	</TD>

</TR>


<TR>
	<TD><font color="white">Documento identificación Cliente</TD></font>
	<TD>
	<INPUT type=text name="id_cliente" onKeyPress="return soloNumeros(event)"/>
	</TD>

</TR>

<TR>
	<TD><font color="white">Codigo Almacen</TD></font>
	<TD>
            <input type="text" name="almacen" readonly="readonly" value="<%=almacen%>"/>
	</TD>

</TR>

<TR>
	<TD COLSPAN=2>
	<INPUT type="submit" style="Position:Absolute; left:30%; top:100%" value="Validar Datos">
	</TD>
        <td><input type="button"  style="Position:Absolute; left:60%; top:100%" value="Cerrar sesiòn" onClick=" window.location.href='Cerrar.jsp' "></td>
</TR>
</TABLE>
</form>
</html>
